using Microsoft.EntityFrameworkCore;
using MyApiApp.Api.Entity;

namespace MyApiApp.Api.Db
{
    public class EntityDb:DbContext
    {
        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        => options.UseSqlServer(@"server=.;database=Myapp;uid=sa;pwd=123456;");
    }
}